package com.lh.microservice1.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lh
 * @Description:
 * @date 2021/3/30 10:18
 */
@RestController
@RequestMapping("/feign")
public class FeignController {
	@Value("${server.port}")
	private String port;

	@RequestMapping("/feignTest")
	public String feignTest(@RequestParam(value = "name", defaultValue = "forezp") String name) {
		String returnStr = "My name is " + name + "!!! I am from " + port;
		return returnStr;

	}
}
